﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LightingReflectionApp
{
    public class Lamp
    {
        public double X { get; set; }
        public double Y { get; set; }
        public double Z { get; set; }
        public double Power { get; set; } // Вт
        public int ColorTemperature { get; set; } // K
        public double LuminousEfficiency { get; set; } // лм/Вт

        public Lamp(double x, double y, double z, double power, int colorTemperature)
        {
            X = x;
            Y = y;
            Z = z;
            Power = power;
            ColorTemperature = colorTemperature;
            LuminousEfficiency = LampEfficiencyCalculator.GetEfficiency(colorTemperature);
        }

        public double CalculateLuminousIntensity()
        {
            return (Power * LuminousEfficiency) / (2 * Math.PI); // Для направленных светильников
        }
    }
}
